{extend name="public/base" /}
{block name="style"}<link href="__LIB__/fileinput/css/fileinput.min.css" rel="stylesheet" /> {/block}
 {block name="body"}
 <div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>通用设置</strong></li>
	</ol>
</div>
{include file="general_settings/top"}
<div class="row">
	<div class="col-sm-12">
		<div class="ibox float-e-margins">
			<div class="ibox-content">
				<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('index')}">
					<div class="form-group">
						<label class="col-sm-3 control-label"></label>
						<div class="input-group col-sm-4">
							<input type="checkbox" style="color:#000000；font-size:82px;" name="checkbox[a]" value="1" {if $res1==1}checked="checked"{/if}><b>允许操作员在消费/充次页面修改“赠送积分”</b>
							<span style="color:#c6c6c6;">（如果关闭，将根据会员等级中设置的规则赠送）</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label"></label>
						<div class="input-group col-sm-4">
							<input type="checkbox" style="color:#000000；font-size:82px;" name="checkbox[b]" value="2" {if $res2==2}checked="checked"{/if}><b>允许操作员在给会员充值时修改“赠送金额”</b>
							<span style="color:#c6c6c6;">（如果关闭，将根据充值奖励中设置的规则赠送）</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label"></label>
						<div class="input-group col-sm-4">
							<input type="checkbox" style="color:#000000；font-size:82px;" id ="check3" name="checkbox[c]" value="3" {if $res3==3}checked="checked"{/if}><b>限制每笔消费/充值/充次中可获得的积分上限</b>
							<span style="color:#c6c6c6;">（手动修改赠送积分时不受该条件约束）</span>
							<div class="width-100">
								<input class="form-control text-center" placeholder="设置上限" id="max_score" name="max_score" value="{$result['max_score']}" style="width:30%;"type="text">
							</div>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label"></label>
						<div class="input-group col-sm-4">
							<input type="checkbox" style="color:#000000；font-size:82px;" id ="" name="checkbox[d]" value="4" {if $res4==4}checked="checked"{/if}><b>限制每笔消费中会员卡支付的金额</b>
							<span style="color:#c6c6c6;"><br>（开启后，每笔消费中使用会员卡余额支付的金额最多为应收金额的比重）</span>
							<div class="width-100">
								<input class="form-control text-center" placeholder="100%" id="check3_input" name="max_money" value="{$result['max_money']}" style="width:30%;"type="text">
							</div>
						</div>
					</div> 
                        <input type="hidden" name="checkbox[]" value="false" />
					<div class="form-group">
						<div class="col-sm-4 col-sm-offset-3">
							<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存</button>
						</div>
					</div>
					
				</form>
			</div>
		</div>
	</div>
</div>

{/block} {block name="script"}
<script>
$("#li-bar-index").addClass("active");
	if(document.getElementById("check3").ckecked==true){
		alert('1');
	}else{
		document.getElementById("check3_input").toggleClass('readonly','readonly');
	}
</script>
<style>
.bank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
}
</style>

{/block}